package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("room_goods")
public class RoomGoodsDao {
	@Id
	private int roomGoodsId;		// 房间物品编号
	@Column
	private String roomNo;			// 所属房间编号
	@Column
	private String registerTime;	// 登记时间
	@Column
	private boolean valid;			// 有效标记
	@Column
	private String comment;			// 备注信息
	@Column("GoodsId")
	private int goodsId;			// 物品类型编号
	
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public GoodsDao getGoods() {
		return goods;
	}
	public void setGoods(GoodsDao goods) {
		this.goods = goods;
	}
	@One(field="goodsId")
	private GoodsDao goods;
	
	public int getRoomGoodsId() {
		return roomGoodsId;
	}
	public void setRoomGoodsId(int roomGoodsId) {
		this.roomGoodsId = roomGoodsId;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public String getRegisterTime() {
		return registerTime;
	}
	public void setRegisterTime(String registerTime) {
		this.registerTime = registerTime;
	}
	public boolean isValid() {
		return valid;
	}
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
